<template>
  <div ref="print">
    <table border="1"  width="1200" height="600" >
      <tr>
        <td colspan="8">车辆基本信息</td>
      </tr>
      <tr>
        <td>车牌号</td>
        <td>{{msg.cId}}</td>
        <td>驾驶证号</td>
        <td>{{msg.dINum}}</td>
        <td>车主身份证号码</td>
        <td>{{msg.idNum}}</td>
      </tr>
    </table>
  </div>
</template>
<script>
import cookies from 'js-cookie'
import axios from 'axios'
export default {
  data(){
    return{
      msg:{
        dINum: "",//驾驶证号
        cId: "",//车牌号
        oId: "",//车主id
      }
    }
  },
  mounted() {
    this.getInfo()
  },
  methods:{
    async getInfo(){
      let mydata={
        oId:cookies.get("id")
      }
      axios.post('/owner-car/get',mydata).then((res)=>{
        this.msg=res.data.data[0]
        console.log(this.msg)
      })
    }
  }

}
</script>
